const Koa = require('koa');
const Router=require('koa-router');
const bodyparser = require('koa-bodyparser')
const app = new Koa();
const router = new Router()
const list=[
    {id:1,title:"张保洁"},
    {id:2,title:"张宝浩"},
    {id:3,title:"张宝杰"},
    {id:4,title:"张宝号"},
    {id:5,title:"张宝洁"},
    {id:6,title:"张宝好"},
]

// #1
app.use(async (ctx, next)=>{
    console.log('我')
    await next();
    console.log("哥")
});
// #2
app.use(async (ctx, next) => {
    console.log('是')
    await next();
    console.log("哥")
})

app.use(async (ctx, next) => {
    console.log('大')
})

app.listen(PORT);
console.log(`http://localhost:${PORT}`);
